<?
class Vakanz_Letters extends Vakanz_CRM_Db_Table {
	protected $_name = 'crm_letter';
	protected $_primary = 'letter_autoid';

	protected $_rowClass = 'Vakanz_Letter';

	public function fetchAll($select = null) {
		if (is_null($select)) {
			$select = $this->select();
		}
		if (is_a($select,'Zend_Db_Table_Select') ) {
			$select->where('letter_status = ?', 10);
		}
		return parent::fetchAll($select);
	}

}